home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
src.arc
/
ECCMD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-16
|
808b
|
34 lines
#include <stdio.h>
#include "global.h"
#include "mbuf.h"
#include "iface.h"
#include "ec.h"
#include "enet.h"
int
doetherstat(argc,argv,p)
int argc;
char *argv[];
void *p;
{
register struct ec *ecp;
char buf[20];
for(ecp = Ec;ecp < &Ec[Nec]; ecp++){
pether(buf,ecp->iface->hwaddr);
printf("Controller %u, Ethernet address %s\n",ecp-Ec,buf);
printf("recv bad overf drop nomem intrpt\n");
printf("%-10lu%-10lu%-10lu%-10lu%-10lu%-10lu\n",
ecp->estats.recv,ecp->estats.bad,ecp->estats.over,
ecp->estats.drop,ecp->estats.nomem,ecp->estats.intrpt);
printf("xmit timeout jam jam16\n");
printf("%-10lu%-10lu%-10lu%-10lu\n",
ecp->estats.xmit,ecp->estats.timeout,ecp->estats.jam,
ecp->estats.jam16);
}
return 0;
}